﻿using System;
using ExFlash.Records;

namespace ExFlash.Tags
{
    public class EnableDebuggerTag : Tag
    {
        public static readonly int EnableDebuggerTagSwfVersion = 5;
        
        public StringRecord Password
        {
            get;
            private set;
        }

        public EnableDebuggerTag(int len, Int32 offset)
            : base(TagCodes.EnableDebugger, len, offset)
        {

        }
        public override void SwfDeserialize(BinaryBitReader reader)
        {
            Password = new StringRecord(EnableDebuggerTagSwfVersion);
            Password.SwfDeserialize(reader);
        }

        public override void SwfSerialize(byte[] arr, ref int offset)
        {
            throw new NotImplementedException();
        }
    }
}
